<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<script>
   var type;
    function getType(classType){
        type=classType;
    }
   function  printPerform(visitId){
     if(type==null || type==undefined){
          type="druglist";
     }
       window.open('${ctx}/nurse/print/perfromSinglePrint?type='+type+'&visitId='+visitId);
   }
</script>
<div class="app">
        <div class="content-wrap">
            <ul class="nav nav-tabs">
                <li><a href="#" onclick="loadDiv('mainCenterDiv','${ctx}/nurse/index')">床位列表</a></li>
                <li class="active">
                    <a href="#">执行单</a>
                </li>
            </ul>
            <div class="row" id="topDivId">
                <div class="col-lg-12">
                    <section class="panel">
                        <div class="panel-body">
                            <form class="form-horizontal" id="patientInfo">
                               <div class="col-lg-3">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">床标号：</label>
                                    <div class="col-sm-5">
                                        <input name="bedLabel" id="clinicName" value="${patVisit.bedRec.bedNo}" class="form-control"  maxlength="50"  />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label">预交金：</label>
                                    <div class="col-sm-5">
                                        <input name="name" id="payment" value="${patVisit.prepayments}"  class="form-control"  maxlength="50" />
                                    </div>
                                </div>
                            </div>
                                <div class="col-lg-3">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">姓名：</label>
                                        <div class="col-sm-5">
                                            <input name="name"  id="name" value="${patVisit.patVisitIndex.name}" class="form-control"  maxlength="50"  />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">费别：</label>
                                        <div class="col-sm-5">
                                            <input name="chargeType" id="chargeType" value="${fns:getDictLabels(patVisit.patVisitIndex.chargeType, 'CHARGE_TYPE_DICT', '')}" class="form-control"  maxlength="50" />
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">性别：</label>
                                        <div class="col-sm-5">
                                            <input name="sex"  id="sex" value="${fns:getDictLabels(patVisit.patVisitIndex.sex, 'SEX_DICT', '')}" class="form-control"  maxlength="50"  />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">诊断：</label>
                                        <div class="col-sm-5">
                                            <input name="diagnosis" id="diagnosis" value="${patVisit.diagnosis}"  class="form-control"  maxlength="50" />
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-3">
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">年龄：</label>
                                        <div class="col-sm-5">
                                            <input name="age"  id="age" class="form-control" value="${patVisit.patVisitIndex.age}"  maxlength="50"  />
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-3 control-label">经治医师：</label>
                                        <div class="col-sm-5">
                                            <input name="doctorInCharge" id="doctor" value="${patVisit.doctorInCharge}"  class="form-control"  maxlength="50" />
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
            <div class="row mb25">
                     <div class="box-tab">
                          <ul class="nav nav-tabs" id="list">
                              <li class="active">
                                  <a href="#home1" data-toggle="tab" aria-expanded="false" onclick="getType('druglist');">服药单</a>
                              </li>
                              <li>
                                  <a href="#profile1" data-toggle="tab" aria-expanded="false" onclick="getType('injection');">注射单</a>
                              </li>
                              <li>
                                  <a href="#shuye" data-toggle="tab" aria-expanded="false" onclick="getType('transfusfuse');">输液单</a>
                              </li>
                              <li>
                                  <a href="#zhil" data-toggle="tab" aria-expanded="false" onclick="getType('treatment');">治疗单</a>
                              </li>
                          </ul>
                         <div class="tab-content text-center">
                             <div class="tab-pane fade active in" id="home1">
                                 <table class="table table-bordered mg-t datatable">
                                     <thead>
                                       <tr>
                                           <th>药品名称</th>
                                           <th>剂量</th>
                                           <th>频次</th>
                                           <th>途径</th>
                                           <th>医生说明</th>
                                       </tr>
                                     </thead>
                                     <tbody>
                                       <tr>
                                           <td>硫酸沙丁氨醇雾化吸入溶液</td>
                                           <td>2.5</td>
                                           <td>一日二次</td>
                                           <td>雾化吸入</td>
                                           <td>****</td>
                                       </tr>
                                       <tr>
                                           <td>吸入用布地奈德混悬液</td>
                                           <td>2.5</td>
                                           <td>一日二次</td>
                                           <td>雾化吸入</td>
                                           <td>****</td>
                                       </tr>
                                     </tbody>
                                 </table>
                             </div>
                             <div class="tab-pane fade" id="profile1">
                                 <table class="table table-bordered mg-t datatable">
                                     <thead>
                                     <tr>
                                         <th>药品名称</th>
                                         <th>剂量</th>
                                         <th>频次</th>
                                         <th>途径</th>
                                         <th>医生说明</th>
                                     </tr>
                                     </thead>
                                     <tbody>
                                     <tr>
                                         <td>硫酸沙丁氨醇雾化吸入溶液</td>
                                         <td>2.5</td>
                                         <td>一日二次</td>
                                         <td>静脉输入</td>
                                         <td>****</td>
                                     </tr>
                                     <tr>
                                         <td>吸入用布地奈德混悬液</td>
                                         <td>2.5</td>
                                         <td>静脉输入</td>
                                         <td>雾化吸入</td>
                                         <td>****</td>
                                     </tr>
                                     </tbody>
                                 </table>
                             </div>
                             <div class="tab-pane fade" id="shuye">
                                 <table class="table table-bordered mg-t datatable">
                                     <thead>
                                     <tr>
                                         <th>药品名称</th>
                                         <th>剂量</th>
                                         <th>频次</th>
                                         <th>途径</th>
                                         <th>医生说明</th>
                                     </tr>
                                     </thead>
                                     <tbody>
                                     <tr>
                                         <td>硫酸沙丁氨醇雾化吸入溶液</td>
                                         <td>2.5</td>
                                         <td>一日二次</td>
                                         <td>静脉输入</td>
                                         <td>****</td>
                                     </tr>
                                     <tr>
                                         <td>吸入用布地奈德混悬液</td>
                                         <td>2.5</td>
                                         <td>静脉输入</td>
                                         <td>雾化吸入</td>
                                         <td>****</td>
                                     </tr>
                                     </tbody>
                                 </table>
                             </div>
                             <div class="tab-pane fade" id="zhil">
                                 <table class="table table-bordered mg-t datatable">
                                     <thead>
                                     <tr>
                                         <th>治疗项目</th>
                                         <th>频率</th>
                                         <th>医生说明</th>
                                     </tr>
                                     </thead>
                                     <tbody>
                                     <tr>
                                         <td>洗伤口</td>
                                         <td>2.5</td>
                                         <td>**</td>

                                     </tr>
                                     <tr>
                                         <td>颈椎治疗</td>
                                         <td>2.5</td>
                                         <td>**</td>
                                     </tr>
                                     </tbody>
                                 </table>
                             </div>
                         </div>
                     </div>
                <div class="pull-right">
                     <input type="button" class="btn btn-primary" value="打印" onclick="printPerform('${patVisit.id}')">
                </div>
            </div>

        </div>
</div>
</div>
</div>